/* 
 * File:   main.cpp
 * Author: griver
 *
 * Created on 21 Октябрь 2011 г., 14:19
 */

#include <cstdlib>
#include "Rational.h"
#include <iostream>
using namespace std;

/*
 * 
 */
int main(int argc, char** argv) {

    Rational a(1, -5);
    Rational b(1, 2);
    cout<<"b = ";
    b.print();
    ++b;
    cout<<"++b = ";
    b.print();
    Rational c = a + a*b  ;
    c.print();
    a.print();
    
    Rational d (c);
    if(d == c)
        cout<<"d equals c\n";
    return 0;
}

